<?php

namespace App\Models;

use App\Library\Models\Entity;
use App\Library\Traits\Orm\AfterSaleOrmTrait;

class AfterSaleModel extends Entity
{
    use AfterSaleOrmTrait;

    protected $table = 'after_sale';
    
    protected $casts = ['file_ids' => 'json', 'reply_file_ids' => 'json'];

    protected $fillable = [
        'id',
        'serial_number',
        'object_type',
        'object_id',
        'refund_type_id',
        'reason_id',
        'user_id',
        'seller_id',
        'status',
        'order_status',
        'status_arrival',
        'pay_price',
        'refund_price',
        'responsible_party',
        'description',
        'file_ids',
        'video_id',
        'reply',
        'reply_file_ids',
        'agree_at',
        'refuse_at',
        'operate_id',
        'remit_at',
        'arrival_at',
        'status_deliver',
        'deliver_at',
        'created_at',
        'updated_at'
    ];
}
